﻿using System;
using System.Collections.Generic;
using System.Text;
using Utils.WebFramework;
using Business;
using Business.Entitys;
using System.Web;
using Utils;
namespace Controllers
{
    public class Home
    {
        public ActionResult Index(Httper httper, HttpObject httpObject, Resource resource)
        {
            ViewResult result = new ViewResult();
            //string uid = "uid" ^ httper;
            string uid = "7a2357d125584fe8a6420aa0961092c5";
            IProcessUser processUser = (IProcessUser)Framework.GetFramework().GetBusiness("ProcessUser");
            Business.Entitys.User user = processUser.GetUser(uid);
            if (user != null)
            {
                Models.User modelUser = new Models.User();
                modelUser.uid = user.UId;
                modelUser.name = user.Name;
                result["modeluser"] = modelUser;
            }

            return result;
        }
    }
}
